import * as types from '../actionTypes';
import { CommonState } from '@/types/storeTypes/storyTypes';

/**
 * 这是一个  使用的demo
 */
const initialState: CommonState = {
	loading: false
};

const reducer = (state = initialState, action: any) => {
    console.log(action)
	switch (action.type) {
		case types.LOADING_TYPE:
			return { ...state, loading: action.value };
		default:
			return state;
	}
};
export default reducer;